import { setProductPrice } from '~/common'
export const COLUMNS_PRODUCT = [
  { width: '60px',
    type: 'index',
    label: '序号',
  },
  {
    minWidth: '150',
    prop: 'factoryItemNum',
    label: '原厂产品编码',
    'show-overflow-tooltip': true
  },
  {
    minWidth: '150',
    prop: 'itemNum',
    label: '供应商产品编码',
    'show-overflow-tooltip': true
  },
  {
    minWidth: '280',
    prop: 'itemName',
    label: '产品名称（中）',
    'show-overflow-tooltip': true
  },
  {
    'min-width': '100',
    prop: 'specs',
    label: '规格',
    'show-overflow-tooltip': true
  },
  {
    'min-width': '100',
    prop: 'specs',
    label: '型号',
    'show-overflow-tooltip': true
  },
  {
    minWidth: '80',
    prop: 'primaryUnitOfMeasureName',
    label: '单位'
  },
  { minWidth: '180', prop: 'productCount', label: '采购数量' },
  {
    width: '130',
    prop: 'price',
    label: '参考单价（元）',
    formatter: row => setProductPrice(row.price)
  },
  {
    minWidth: '260',
    prop: 'manufacturerName',
    label: '生产厂家'
  },
  {
    minWidth: '150',
    prop: 'productLineName',
    label: '产品线'
  },
  { minWidth: '60', prop: 'opt', label: '操作' }
];
